projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df5b25e
)
xenconsoled: Use ISO8601 date stamp format.
author
Keir Fraser
<keir.fraser@citrix.com>
Fri, 15 Feb 2008 09:51:34 +0000
(09:51 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Fri, 15 Feb 2008 09:51:34 +0000
(09:51 +0000)
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/console/daemon/io.c
patch
|
blob
|
history
diff --git
a/tools/console/daemon/io.c
b/tools/console/daemon/io.c
index 9573333c08e45fdd18a5824608e68d4f3c4daf2d..396a0955d64b2669e4308b0a22310fed204e88b1 100644
(file)
--- a/
tools/console/daemon/io.c
+++ b/
tools/console/daemon/io.c
@@
-122,7
+122,7
@@
static int write_with_timestamp(int fd, const char *data, size_t sz)
char ts[32];
time_t now = time(NULL);
const struct tm *tmnow = localtime(&now);
- size_t tslen = strftime(ts, sizeof(ts), "[%
d-%m-%Y
%H:%M:%S] ", tmnow);
+ size_t tslen = strftime(ts, sizeof(ts), "[%
Y-%m-%d
%H:%M:%S] ", tmnow);
memcpy(buf, data, sz);
while (sz > 0 && buf[sz-1] == '\r')